package com.xuecheng.content.service;

import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.api.content.model.dto.TeachplanMediaDTO;
import com.xuecheng.api.content.model.qo.QueryTeachplanMediaModel;
import com.xuecheng.content.entity.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-10-09
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 查询课程计划信息树结构
     * @param courseBaseId
     * @param companyId
     * @return
     */
    TeachplanDTO queryTree(Long courseBaseId, Long companyId);

    /**
     * 新增或修改课程计划
     * @param teachplanDTO
     * @param companyId
     * @return
     */
    TeachplanDTO createOrModifyTeachPlan(TeachplanDTO teachplanDTO, Long companyId);

    /**
     * 删除课程信息
     * @param teachPlanId
     * @param companyId
     * @return
     */
    boolean  removeTeachPlan(Long teachPlanId, Long companyId);

    /**
     * 媒资绑定
     * @param qo
     * @param companyId
     * @return
     */
    TeachplanMediaDTO associateMedia(QueryTeachplanMediaModel qo, Long companyId);
}
